package com.zijin.exec;

import java.util.Scanner;

public class Text02 {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        int i = 1;
        int j = 1;
        int total = 0;
        while(i<=3) {
            total = 0;
            j = 1;
            System.out.println("请输入第" + i + "个班的成绩");
            while(j<=4) {
                System.out.println("请输入第" + j + "个同学的成绩");
                int number = input.nextInt();
                j++;
                total += number;
            }
            System.out.println("第"+i+"个班的平均分是："+(total/4));
            i++;
        }
    }
}
